package org.gesplan.entity.sig;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author David
 */
@Entity
@Table(name = "llum_quadre")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "LlumQuadre.findAll", query = "SELECT l FROM LlumQuadre l"),
    @NamedQuery(name = "LlumQuadre.findByGid", query = "SELECT l FROM LlumQuadre l WHERE l.gid = :gid"),
    @NamedQuery(name = "LlumQuadre.findByGeoname", query = "SELECT l FROM LlumQuadre l WHERE l.geoname = :geoname")
})
public class LlumQuadre implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "gid")
    private Integer gid;
    @Column(name = "geoname")
    private String geoname;
    @Column(name = "id1")
    private Integer id1;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Column(name = "gmrotation")
    private Double gmrotation;


    public LlumQuadre() {
    }


    public LlumQuadre(Integer gid) {
        this.gid = gid;
    }


    public Integer getGid() {
        return gid;
    }


    public void setGid(Integer gid) {
        this.gid = gid;
    }


    public String getGeoname() {
        return geoname;
    }


    public void setGeoname(String geoname) {
        this.geoname = geoname;
    }


    public Integer getId1() {
        return id1;
    }


    public void setId1(Integer id1) {
        this.id1 = id1;
    }


    public Double getGmrotation() {
        return gmrotation;
    }


    public void setGmrotation(Double gmrotation) {
        this.gmrotation = gmrotation;
    }


    @Override
    public int hashCode() {
        int hash = 0;
        hash += (gid != null ? gid.hashCode() : 0);
        return hash;
    }


    @Override
    public boolean equals(Object object) {
        if (!(object instanceof LlumQuadre)) {
            return false;
        }
        LlumQuadre other = (LlumQuadre) object;
        return (this.gid != null || other.gid == null) && (this.gid == null || this.gid.equals(other.gid));
    }


    @Override
    public String toString() {
        return geoname;
    }
    
    
}